//
//  NetworkTools.h
//  Test
//
//  Created by mac on 16/3/10.
//  Copyright © 2016年 mac. All rights reserved.
//

#import <AFNetworking/AFNetworking.h>
#import <ReactiveCocoa/ReactiveCocoa.h>

typedef enum : NSInteger {
    GET,
    POST
} RequestMethod;

@interface NetworkTools : AFHTTPSessionManager

+ (instancetype)sharedTools;

- (RACSignal *)request:(RequestMethod)method URLString:(NSString *)URLString parameters:(id)parameters;

@end
